Search results
10 packages found
An advanced cases switcher for complex conditions
Tool that switches provided word from camelCase to underscored_case and back
The module provides directives similar to `ngSwitch` but for multiple cases simultaneously. It is supposed to be used in highly dynamic applications based on configs.
The rswitch library provides a compact and flexible way to implement switch-like functionality in JavaScript. It allows you to define cases and their corresponding actions using an object literal syntax.
A small, but fully featured, library that aims to replace `switch` case logic (mainly to aid with Functional Programming), with a simple declarative API for setting up a predefined map of cases, and choosing a result from it based on input.
A simple utility that improves JavaScript's built-in "switch" statement.
switch between regexp cases, globs. switches are composeable with each other
readable nested ternaries
An adapter where you can define which function to run
Function to provide a similar syntax to a switch statement but with regex as cases.